<?php

namespace App\Model;

use App\User;
use Illuminate\Database\Eloquent\Model;

class AreasPrice extends Model
{

    public $timestamps = true;

    public $table = 'areas_price';

    public $guarded = [];

    public function area()
    {
        return $this->belongsTo(AreasCn::class,'adcode','adcode');
    }

    public function device()
    {
        return $this->belongsTo(Device::class,'device_id','id');
    }
}
